package com.bootdo.clouddo.service.douban.impl;

import com.bootdo.clouddo.dao.douban.DbBookTagMapper;
import com.bootdo.clouddo.domain.douban.DbBookTag;
import com.bootdo.clouddo.service.douban.IDbBookTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DbBookTagServiceImpl implements IDbBookTagService {

    @Autowired
    private DbBookTagMapper dao;

    @Override
    public int save(DbBookTag tag) {
        return dao.insertSelective(tag);
    }

    @Override
    public DbBookTag get(Long id) {
        return dao.selectByPrimaryKey(id);
    }
}
